package cn.hzh.forward.service.ding;

import com.github.jaemon.dinger.core.annatations.DingerImageText;
import com.github.jaemon.dinger.core.annatations.DingerLink;
import com.github.jaemon.dinger.core.annatations.DingerMarkdown;
import com.github.jaemon.dinger.core.annatations.DingerText;
import com.github.jaemon.dinger.core.entity.DingerResponse;
import com.github.jaemon.dinger.core.entity.ImageTextDeo;
import com.github.jaemon.dinger.core.entity.LinkDeo;

import java.util.List;


public interface UserDinger {

    @DingerText(value = "恭喜用户${userName}登录成功!")
    DingerResponse success(String userName);

    @DingerMarkdown(
            value = "#### 用户登录通知\n - 用户Id： ${userId}\n - 用户名： ${userName}",
            title = "用户登录反馈"
    )
    DingerResponse failed(long userId, String userName);

    // 图文类型
    @DingerImageText
    DingerResponse imageText(List<ImageTextDeo> images);

    // link类型, 只支持Dingtalk
    @DingerLink
    DingerResponse link(LinkDeo link);
}